package com.slz3.business.module.wmsManagement.wmsPurchaseOrderSelf.req;

import com.slz3.business.module.wmsManagement.wmsPurchaseOrderSelf.domain.WmsPurchaseOrderSelfEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.UUID;

/**
 * @author fengshiyou  on 2018/12/6 3:23 PM
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UpdateForm {

    @NotNull(message = "订单ID不能为空")
    private UUID uuid;
    /**
     * 采购单条目
     */
    @NotNull(message = "商品不能为空")
    private List<AddFormLine> formLines;

    /**
     * 仓库ID
     */
    @NotNull(message = "仓库不能为空")
    private UUID wmsHorseId;

    /**
     * 采购备注
     */
    private String remark;

    /**
     * 操作类型 1，保存 2，生成采购订单
     */
    private WmsPurchaseOrderSelfEnum.WmsOrderStatus operateType;
}
